package com.hxs.hxsserver.domain.dto.device;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liuchuan
 * @create 2024/11/19
 */
@Data
@ApiModel("继电器模式返回属性")
public class RelayModeInsertReturnDTO {
    private Integer id;

    @ApiModelProperty(value = "计划名称")
    private String name;

    @ApiModelProperty(value = "模式类型：1手动，2自动，3定点，4星期")
    private Integer mode;

    @ApiModelProperty(value = "设备硬件地址码，长度十位")
    private String deviceHardwareAddr;

    @ApiModelProperty(value = "继电器编号")
    private Integer relayNo;

    @ApiModelProperty(value = "因子id")
    private int factorId;

    @ApiModelProperty(value = "数据条件 01表示小于02表示等于03表示大于")
    private String dataCondition;

    @ApiModelProperty(value = "因子数据区间开始，数据A")
    private Integer factorDataBegin;

    @ApiModelProperty(value = "因子数据区间结束，数据B")
    private Integer factorDataEnd;

    @ApiModelProperty(value = "动作延时，单位分钟")
    private Integer actorTime;

    @ApiModelProperty(value = "继电器状态，0是关，1是开")
    private Integer relayStatus;

    @ApiModelProperty(value = "设备工作时间段开始时间 小时：分钟，例：12:20")
    private String periodBeginTime;

    @ApiModelProperty(value = "设备工作时间段结束时间 小时：分钟，例：12:20")
    private String periodEndTime;

    @ApiModelProperty(value = "周，星期模式才有值 填：1或2,3,4,5,6,7")
    private Integer week;

    @ApiModelProperty(value = "定点和星期模式的定时时间,12:00")
    private String scheduledTime;

    @ApiModelProperty(value = "设备工作持续时间，星期和定点模式才有值，单位分钟")
    private Integer workTime;

}
